graph theory:tree